<!--<?php
print <<<EOT
-->
<link rel="stylesheet" href="./plugin/index.css" />
<script charset="utf-8" src="./plugin/kindeditor.js"></script>
<script src="../css/edit.js"></script>

<script type="text/javascript">

  KE.show({
	id : 'description',
	cssPath : './index.css',
	afterCreate : function(id) {
		KE.event.ctrl(document, 13, function() {
			KE.sync(id);
			document.forms['form1'].submit();
		});
		KE.event.ctrl(KE.g[id].iframeDoc, 13, function() {
			KE.sync(id);
			document.forms['form1'].submit();
		});
	}
});

KE.show({
	id : 'descriptionzh',
	cssPath : './index.css',
	afterCreate : function(id) {
		KE.event.ctrl(document, 13, function() {
			KE.sync(id);
			document.forms['form1'].submit();
		});
		KE.event.ctrl(KE.g[id].iframeDoc, 13, function() {
			KE.sync(id);
			document.forms['form1'].submit();
		});
	}
});  
KE.show({
	id : 'descriptionru',
	cssPath : './index.css',
	afterCreate : function(id) {
		KE.event.ctrl(document, 13, function() {
			KE.sync(id);
			document.forms['form1'].submit();
		});
		KE.event.ctrl(KE.g[id].iframeDoc, 13, function() {
			KE.sync(id);
			document.forms['form1'].submit();
		});
	}
});  
  

</script>

<!--Content Start-->
<table width="95%" border="0" align="center">
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td>
      <table width="90%" border="0" align="left" cellpadding="3" cellspacing="3">
        <tr> 
          <td width="750">
          $msg
            <table border="0" cellspacing="1" cellpadding="1">
              <tr>
                <td width="50%">
                  <form name="form1" method="post" action="p_style_add.php">
                  <table border="0" cellspacing="1" cellpadding="1">
                    <tr> 
                      <td><!--input type="text" class="text" name="name" size="20" value="Enter Setting ..." onFocus="form1.name.value=''"--></td>
                      <td><input name="image" type="image"  onCLick="form1.submit" src="../images/admin/bt_add.gif"/></td>
			          <td><img src="../images/admin/shim.gif" width=30></td>
                    </tr>
                  </table>
                  </form>
                </td>
                <td align="right">
                <form name="form2" method="post" action="p_style.php">
                  <table border="0" cellspacing="1" cellpadding="1">
                    <tr>
                      <td><input type="text" class="text" name="Search" size="20" value="Enter Name ..." onFocus="form2.Search.value=''"/><input type="hidden" name="action" value="search"/></td>
			          <td><input name="image" type="image" src="../images/admin/bt_search.gif"/></td>
			          <td><input name="image" type="image" src="../images/admin/bt_listall.gif" onClick="location.href='p_style.php';return false;"/></td>
                    </tr>
                  </table>
                  </form>
			    </td>
              </tr>
            </table>
            
            <span id="edit_area"   {$statusEd}>
			
	<form action="p_style.php" method="post" name="form1" id="form1">
      <table width="60%" align="left">
      <tr><td>
      <table width="95%" border="0" align="center">
        <tr> 
          <td align="right">&nbsp; </td>
        </tr>
        <tr> 
          <td>
            <table border="0" cellspacing="0" cellpadding="2">
              <tr> 
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>             
              <tr> 
                <td>Name :</td>
                <td>
                <input type="text" class="text" name="name" value="{$ed_name}">	  
			    <input name="action" type="hidden" value="edit"> 
			   <input name="id" type="hidden" value="{$ed_id}">
                </td>
              </tr>
               <tr> 
                <td>Name Chinese:</td>
                <td>
                  <input type="text" class="text" name="namezh" value="{$ed_namezh}">	  
                  
                </td>
              </tr>
               <tr> 
                <td>Name Russian:</td>
                <td>
                  <input type="text" class="text" name="nameru" value="{$ed_nameru}">	  
                  
                </td>
              </tr>
                       <tr> 
                <td valign="top">Description :</td>
                <td>
                 
                <textarea style="width:700px;height:300px;visibility:hidden;" rows="5" class="text" cols="66" name="description" id="description">
				$ed_description
				</textarea>	 
                </td>
              </tr>
               <tr> 
                <td valign="top">Description Chinese:</td>
                <td>
                
                  <textarea style="width:700px;height:300px;visibility:hidden;" rows="5" class="text" cols="66" name="descriptionzh" id="descriptionzh">
				 $ed_descriptionzh
				  </textarea>	  
                  
                </td>
              </tr>
               <tr> 
                <td valign="top">Description Russian:</td>
                <td>
                
                  <textarea style="width:700px;height:300px;visibility:hidden;" rows="5" class="text" cols="66" name="descriptionru" id="descriptionru">
				 $ed_descriptionru
				  </textarea>	  
                  
                </td>
              </tr>
             
         <tr> 
                <td>Publish :</td>
                <td>
                  <select class="select" name="ispublish">
                   $strOption
                  </select>	  
                </td>
              </tr> 
            </table>
          </td>
        </tr>
      </table>
     </td></tr>
    
      <tr><td>
      <table width="95%" border="0" align="left">
        <tr> 
          <td align="center">
            <input type="image" src="../images/admin/bt_cancel.gif" width="78" height="23" onclick="location.href='p_style.php'"> 
            <input type="image" src="../images/admin/bt_save.gif" width="76" height="22" onclick="form1.submit"> 
          </td>
        </tr>
      </table>
      </td></tr>
      </table>
      </form>
			
			
			</span>
            
            $page_show

            <table width="100%" border="0" cellspacing="1" cellpadding="1" class="tb">
              <tr class="tbheader"> 
		         <td align="center" width="5%">ID</td>
		         <td width="12%">Name</td>
		         <td width="12%">Name Chinese</td>
		         <td width="12%">Name Russian</td>
		         <td width="25%">Description</td>
		         <td width="25%">Description Chinese</td>
		         <td width="25%">Description Russian</td>
		         <td width="5%">Publish</td>
			     <td width="5%"></td>
              </tr>

<!--
EOT;
for($i=0; $i<count($out_ary); $i++){    
    if($out_ary[$i]["ispublish"]==1)
        $out_ary[$i]["ispublish"] = "Yes";
    else
        $out_ary[$i]["ispublish"] = "No";
print <<<EOT
-->
              
              <tr class="tbcontent1"> 
                <td align="center" bgcolor="ECECEC">{$out_ary[$i]['id']}</td>
		        <td bgcolor="ECECEC">{$out_ary[$i]['name']}</td>
		         <td bgcolor="ECECEC">{$out_ary[$i]['namezh']}</td>
		         <td bgcolor="ECECEC">{$out_ary[$i]['nameru']}</td>
		         <td bgcolor="ECECEC">{$out_ary[$i]['description']}</td>
		         <td bgcolor="ECECEC">{$out_ary[$i]['descriptionzh']}</td>	
		         <td bgcolor="ECECEC">{$out_ary[$i]['descriptionru']}</td>		         
		        <td bgcolor="ECECEC" align="center">{$out_ary[$i]['ispublish']}</td>
			    <td align=center bgcolor="ECECEC">				
				  <a href="p_style.php?action=view&&ids={$out_ary[$i]['id']}"><img src="../images/admin/bt_edit.gif" border="0" alt="Edit"></a>
				  
			   <!-- <a href="javascript:getAdminEdit('edit_area', '33', '{$out_ary[$i]['id']}');initEdit();"><img src="../images/admin/bt_edit.gif" border="0" alt="Edit"></a>-->
				
			    <a href="p_style.php?action=del&id={$out_ary[$i]['id']}" onclick="return confirm('Delete {$out_ary[$i]['name']}?')"><img src="../images/admin/bt_delete.gif" border="0" Alt="Delete"></a>
			    </td>
              </tr>

<!--
EOT;
} print <<<EOT
--> 
                            
            </table>

            $page_show

          </td>
        </tr>
      </table>
      
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p></td>
  </tr>
</table>
<!--Content End-->

<!--
EOT;
?>-->